package com.melon.modules.sys.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created with IntelliJ IDEA.
 * User: xjt2016
 * Date: 2016/8/20
 * Time: 14:07
 * To change this template use File | Settings | File Templates.
 */

@Controller
public class DruidDemoController {


    @Autowired
    @Qualifier("primaryJdbcTemplate")
    private JdbcTemplate primaryJdbcTemplate;


    @ResponseBody
    @RequestMapping(value = "/d/demo01")
    public Object demo01(@RequestParam("result") String result) {
        return result;
    }
}
